home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 September
/
Macworld (1998-09).dmg
/
Shareware World
/
Info
/
For Developers
/
MacZoop 1.8.3
/
Required Classes
/
Z Headers
/
ZGrafState.h
< prev
next >
Wrap
Text File
|
1998-05-14
|
711b
|
45 lines
/*************************************************************************************************
*
*
* MacZoop - "the framework for the rest of us"
*
*
*
* ZGrafState.h -- a simple object for saving and restoring grafport state
*
*
* © 1997, Graham Cox
*
*
*
*************************************************************************************************/
#pragma once
#ifndef __ZGRAFSTATE__
#define __ZGRAFSTATE__
class ZGrafState
{
protected:
CGrafPtr port;
GDHandle dev;
RgnHandle clip;
PenState pen;
RGBColor fore;
RGBColor back;
short font;
short fSize;
Style fStyle;
short fMode;
public:
ZGrafState();
virtual ~ZGrafState();
void Record();
void Restore();
};
#endif